package com.mill.controller;

import javax.annotation.Resource;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import com.mill.services.BookService;

@RestController
public class BookController {
	
	@Resource
	private BookService bookService;
	
	@GetMapping("all")
	public Object name() {
		return bookService.findAll();
	}
}
